<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.util.*"%>
<%@page import="java.net.*"%>
<%@page import="org.xtframe.util.ContextUtil"%>
<%@page import="org.xtframe.entity.Application"%>
<%@page import="org.xtframe.entity.ApplicationConfig"%>
<%@page import="org.xtframe.entity.User"%>
<%@page import="org.xtframe.common.EncryptCount"%>
<%@page import="org.xtframe.util.ApplicationConfigUtil"%>
<%
String basePath = request.getContextPath();
Map<String, Object> model = (Map<String, Object>)request.getAttribute("model");
Map<String, Object> param = (Map<String, Object>)model.get("_param");
String fw = param.containsKey("fw") ? param.get("fw").toString() : "";
if(session.getAttribute(ApplicationConfig.LOGIN_USER) == null) {
	response.setHeader("refresh","0;url=" + basePath + "/p100012.html?fw=" + URLEncoder.encode(fw, "utf-8"));
} else {
	if(fw.isEmpty()) {
		response.setHeader("refresh","0;url=" + basePath + "/index.jsp");
	} else {
		response.setHeader("refresh","0;url=" + basePath + fw);
	}
}
%>
